for num in range(100, 1000):
    t = num
    a = t % 10;
    t //= 10
    b = t % 10
    t //= 10
    c = t
    if a ** 3 + b ** 3 + c ** 3 == num:
        print(num)
